<template>
  <div>
    <van-button class="tologin" type="primary" size="large" @click="toLogin">登录界面</van-button>
  </div>
</template>

<script setup>

import { useRouter } from 'vue-router';

const router = useRouter()
//跳转到登录页面
const toLogin = () => {
  router.push('/login')
}
</script>

<style lang="less" scoped>
.tologin{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
</style>